<?php $this->beginContent('//layouts/main'); ?>
    <div id="tnm-body">
    	<?php echo $content; ?>
    </div>
    <div id="tnm-footer">
    	<div class="right"></div>
        <div class="tnm-article">
        	<h2 class="title-article">Đăng nhập</h2>
            <div class="content-article">
            	<p>Chào <?php if( Yii::app()->user->name == 'admin') echo 'quản lý';else echo 'nhân viên'; ?>: <strong><?php echo Yii::app()->user->name ?></strong></p>
                <a href="#" title="" class="btn-lock"><img src="images/bt-lockscreen.png" width="197" height="44" /></a>
            </div>
        </div>
        <div class="tnm-article">
        	<h2 class="title-article">Thông báo</h2>
            <div class="content-article">
            	<?php foreach (Yii::app()->session['announcements'] as $item):?>
                   <p class="list-system"><?php echo $item->content ?></p>
                <?php endforeach;?>
            </div>
        </div>
        <div class="tnm-article">
        	<h2 class="title-article">hệ thống</h2>
            <div class="content-article">
                <?php foreach (Yii::app()->session['supplies'] as $item):?>
                   <p class="list-system"><?php echo $item->type ?> <?php echo $item->name ?> còn <?php echo $item->number ?></p>
                <?php endforeach;?>
            </div>
        </div>
        <div class="clock">
        	<div id="digiclock"></div>
        </div>
    </div>
<?php $this->endContent(); ?>